烧火影视[优].js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // 搜索验证 -> drpy_ocr自动过搜索验证失败
  2. var rule = {
  3. title: '烧火影视[优]',
  4. host:'https://saohuo.tv',
  5. //host: 'http://shapp.us',
  6. //hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"a:eq(2)&&href");print(src);HOST=src',
  7. // url:'/list/fyclass-fypage.html',
  8. url: '/list/fyfilter-fypage.html',
  9. filterable: 1,//是否启用分类筛选,
  10. filter_url: '{{fl.cateId}}',
  11. filter: {
  12. "1": [{
  13. "key": "cateId",
  14. "name": "类型",
  15. "value": [{"v": "1", "n": "全部"}, {"v": "6", "n": "喜剧"}, {"v": "7", "n": "爱情"}, {
  16. "v": "8",
  17. "n": "恐怖"
  18. }, {"v": "9", "n": "动作"}, {"v": "10", "n": "科幻"}, {"v": "11", "n": "战争"}, {
  19. "v": "12",
  20. "n": "犯罪"
  21. }, {"v": "13", "n": "动画"}, {"v": "14", "n": "奇幻"}, {"v": "15", "n": "剧情"}, {
  22. "v": "16",
  23. "n": "冒险"
  24. }, {"v": "17", "n": "悬疑"}, {"v": "18", "n": "惊悚"}, {"v": "19", "n": "其它"}]
  25. }],
  26. "2": [{
  27. "key": "cateId",
  28. "name": "类型",
  29. "value": [{"v": "2", "n": "全部"}, {"v": "20", "n": "大陆"}, {"v": "21", "n": "TVB"}, {
  30. "v": "22",
  31. "n": "韩剧"
  32. }, {"v": "23", "n": "美剧"}, {"v": "24", "n": "日剧"}, {"v": "25", "n": "英剧"}, {
  33. "v": "26",
  34. "n": "台剧"
  35. }, {"v": "27", "n": "其它"}]
  36. }],
  37. "4": [{
  38. "key": "cateId",
  39. "name": "类型",
  40. "value": [{"v": "4", "n": "全部"}, {"v": "38", "n": "搞笑"}, {"v": "39", "n": "恋爱"}, {
  41. "v": "40",
  42. "n": "热血"
  43. }, {"v": "41", "n": "格斗"}, {"v": "42", "n": "美少女"}, {"v": "43", "n": "魔法"}, {
  44. "v": "44",
  45. "n": "机战"
  46. }, {"v": "45", "n": "校园"}, {"v": "46", "n": "亲子"}, {"v": "47", "n": "童话"}, {
  47. "v": "48",
  48. "n": "冒险"
  49. }, {"v": "49", "n": "真人"}, {"v": "50", "n": "LOLI"}, {"v": "51", "n": "其它"}]
  50. }],
  51. // "28":[{"key":"cateId","name":"综艺","value":[{"v":"28","n":"脱口秀"},{"v":"29","n":"真人秀"},{"v":"30","n":"选秀"},{"v":"31","n":"美食"},{"v":"32","n":"旅游"},{"v":"33","n":"汽车"},{"v":"34","n":"访谈"},{"v":"35","n":"纪实"},{"v":"36","n":"搞笑"},{"v":"37","n":"其它"}]}]
  52. },
  53. filter_def: {
  54. 1: {cateId: '1'},
  55. 2: {cateId: '2'},
  56. 4: {cateId: '4'}
  57. // 28:{cateId:'28'}
  58. },
  59. searchUrl: '/search.php?page=fypage&searchword=**&searchtype=',
  60. searchable: 0,
  61. quickSearch: 0,
  62. headers: {'User-Agent': 'MOBILE_UA',},
  63. timeout: 5000,//网站的全局请求超时,默认是3000毫秒
  64. class_name: '电影&电视剧&动漫',
  65. class_url: '1&2&4',
  66. play_parse: true,
  67. lazy: `js:
  68. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  69. var html = pd(request(input), 'iframe&&src');
  70. var apiurl = '';
  71. if (/api\\.hhplayer/.test(html)) {
  72. apiurl = 'https://api.hhplayer.com/api.php';
  73. } else if (/hkjx\\.hhplayer/.test(html)) {
  74. apiurl = 'https://hkjx.hhplayer.com/api.php';
  75. } else if (/hhjx\\.hhplayer/.test(html)) {
  76. apiurl = 'https://hhjx.hhplayer.com/api.php';
  77. } else if (/play\\.hhplayer/.test(html)) {
  78. apiurl = 'https://play.hhplayer.com/hhjx/api.php';
  79. }
  80. var url = '';
  81. var t = '';
  82. var key = '';
  83. eval(pdfh(request(html), 'body&&script,0&&Html').split('var act')[0].replaceAll('var ', ''));
  84. var purl = JSON.parse(request(apiurl, {
  85. headers: {
  86. 'User-Agent': MOBILE_UA,
  87. 'Referer': html
  88. },
  89. body: 'url=' + url + '&t=' + t + '&key=' + key + '&act=0&play=1',
  90. method: 'POST'
  91. })).url;
  92. if(!purl){
  93. input = {
  94. parse:1,
  95. url:html
  96. }
  97. }
  98. else if (/obj\\/tos/.test(purl)) {
  99. input = {
  100. jx: 0,
  101. url: purl,
  102. parse: 0
  103. }
  104. } else {
  105. input = {
  106. jx: 0,
  107. url: /http/.test(purl) ? purl: 'https://api.hhplayer.com' + purl,
  108. parse: 0
  109. }
  110. }
  111. `,
  112. 推荐: '.v_list,0&&li;*;*;*;*',
  113. 一级: '.v_list li;a&&title;.lazyload&&data-original;.v_note&&Text;a&&href',
  114. 二级: {
  115. "title": "h1&&Text;",
  116. "img": ".m_background&&style",
  117. "desc": ";;;.v_info_box&&p&&Text",
  118. "content": ".p_txt.show_part&&Text",
  119. "tabs": ".from_list&&li",
  120. "lists": "#play_link&&li:eq(#id)&&a"
  121. },
  122. 搜索: '*',
  123. }